package com.snow.campuslink.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Gaosl
 * @since 2021-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cl_bbs_post")
@ApiModel(value="BbsPost对象", description="")
public class BbsPost implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "校园论坛帖子id")
    @TableId(value = "bbs_post_id", type = IdType.AUTO)
    private Long bbsPostId;

    @ApiModelProperty(value = "帖子标题")
    private String bbsPostTitle;

    @ApiModelProperty(value = "帖子内容")
    private String bbsPostContent;

    @ApiModelProperty(value = "帖子作者(用户)id")
    private Long bbsPostAuthorId;

    @ApiModelProperty(value = "帖子标签id")
    private Long bbsPostTagId;

    @ApiModelProperty(value = "帖子浏览量")
    private Integer bbsPostBrowsedCount;

    @ApiModelProperty(value = "帖子点赞量")
    private Integer bbsPostLikedCount;

    @ApiModelProperty(value = "帖子收藏量")
    private Integer bbsPostCollectedCount;

    @ApiModelProperty(value = "帖子评论量")
    private Integer bbsPostCommentCount;

    @ApiModelProperty(value = "是否含有图片视频：1含有，0不含")
    private Boolean isWithImageVideo;

    @ApiModelProperty(value = "逻辑删除:1  删除，0  未删除")
    @TableLogic(value = "0",delval = "1")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date modifiedTime;


}
